package com.zxz.springbootredis.repository;

import com.zxz.springbootredis.entity.EnterpriseUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface EnterpriseUserRepository extends JpaRepository<EnterpriseUser, Integer> {
    boolean existsByPhone(String phone);
    boolean existsByAccountName(String accountName);
    EnterpriseUser findByPhoneOrAccountName(String phone, String accountName);
}